package com.astoolkit.workflow.common
{
	import com.astoolkit.workflow.BaseTask;
	import com.astoolkit.workflow.WorkflowEvent;
	
	import flash.utils.setTimeout;

	[Event(
		name="execute",
		type="com.astoolkit.workflow.WorkflowEvent")]
	
	public class ExecuteCode extends BaseTask
	{
		public static const EXECUTE : String = "execute";
		
		override public function begin() : void
		{
			super.begin();
			dispatchEvent( new WorkflowEvent( EXECUTE ) );
			setTimeout( complete, 10 );
		}		
	}
}